package com.wg.entity.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterDto {
    /**
     * 注册用户的dto对象
     */
    @NotNull(message = "用户名必填")
    private String name;
    @NotNull(message = "密码必填")
    private String password;
    @NotNull(message = "确认密码必填")
    @JsonProperty(value = "re_password")
    private String rePassword;
    @NotNull(message = "职位必填")
    @JsonProperty(value = "job_id")
    private Long jobId;

}
